Handle cases where buffer gets killed while running Fkill_buffer (Bug#11665).
authormartin rudalics <rudalics@gmx.at>
Mon, 18 Jun 2012 07:20:19 +0000 (09:20 +0200)
committermartin rudalics <rudalics@gmx.at>
Mon, 18 Jun 2012 07:20:19 +0000 (09:20 +0200)
commit9a41325c9eabf3a6a281a7845ee259b9d8fc11b1
tree41b5ccac26c6024ad3b98cc296cff3839d8b3e46
parent86af6873bb511f5da77faf8d897aa265639222e0
Handle cases where buffer gets killed while running Fkill_buffer (Bug#11665).

* buffer.c (Fkill_buffer): Don't throw an error when the buffer
gets killed during executing of this function (Bug#11665).  Try
to always return Qt when the buffer has been actually killed.
(Vkill_buffer_query_functions): In doc-string say that functions
run by this hook should not change the current buffer.
src/ChangeLog
src/buffer.c